﻿using System;

namespace StringDatetype
{
    class Program
    {
        static void Main()
        {
            //定义字符串类型变量S1、S2
            string s1 = "a string";
            string s2 = s1;
            //输出字符串
            Console.WriteLine("s1 is" + s1);
            Console.WriteLine("s2 is" + s2);

            //S1赋值
            s1 = "another string";
            Console.WriteLine("s1 is now" + s1);
            Console.WriteLine("s2 is now" + s2);
        }

    }
}
